package com.cskaoyan.service;

import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{
    @Override
    public void method1() {
        System.out.println("method1");
    }

    @Override
    public String method2() {
        System.out.println("method2");
        return "method2";
    }

    @Override
    public String method3(String name) {
        //委托类方法在执行过程中使用到了你传入的参数
        System.out.println("method3:" + name);
        return "method3";
    }

    @Override
    public String method4(String name) {
        System.out.println("method4");
        int i = 1 / 0;
        return null;
    }
}
